import instance from '@/utils/request';

//销售管理显示
export function GetSalesManagementDtoAsync(data) {
    return instance.request({
        url: "api/SalesManagement/GetSalesManagementDto",
        method: "post",
        data
    })
}

//删除销售管理
export function DelSalesManagement(data) {
    return instance.request({
        url: "api/SalesManagement/DelSalesManagement",
        method: "post",
        data
    })
}

//批量删除销售管理
export function BatchDelSearchSalesManagement(data) {
    return instance.request({
        url: "api/SalesManagement/BatchDelSearchSalesManagement",
        method: "post",
        data
    })
}

//查看销售管理1
export function FillSalesManagement1Async(data) {
    return instance.request({
        url: "api/SalesManagement/FillSalesManagement1",
        method: "post",
        data
    })
}

//查看销售管理下的产品管理2
export function FileSalesManagement2DtoAsync(data) {
    return instance.request({
        url: "api/SalesManagement/FileSalesManagement2Dto",
        method: "post",
        data
    })
}


export function BindSel(data) {
    return instance.request({
        url: "api/SalesManagement/BindSale",
        method: "post",
        data
    })
}

export function CustomerBy(data) {
    return instance.request({
        url: "api/SalesManagement/GetCustomByCode",
        method: "post",
        data
    })
}

//销售退货
export function IsReturnSearchSalesManagement(data) {
    return instance.request({
        url: "api/SalesManagement/IsReturnSearchSalesManagement",
        method: "post",
        data
    })
}

//销售入账
export function IsRecordedSearchSalesManagement(data) {
    return instance.request({
        url: "api/SalesManagement/IsRecordedSearchSalesManagement",
        method: "post",
        data
    })
}

//添加销售管理
export function AddSalesManagement(data) {
    return instance.request({
        url: "api/SalesManagement/AddSalesManagement",
        method: "post",
        data
    })
}

//退货
export function RefunAdd(data) {
    return instance.request({
        url: "api/SalesManagement/RefunAdd",
        method: "post",
        data
    })
}